package com.fjnu.service;

import com.fjnu.annotation.ExceptionGlobalCatch;
import com.fjnu.dto.ArticleConditionDto;
import com.fjnu.entity.Article;
import com.fjnu.vo.ArticleUpdateDto;
import com.fjnu.vo.PageResult;

@ExceptionGlobalCatch
public interface ArticleService {
    PageResult<Article> queryByArticleCondition(ArticleConditionDto articleCond, Integer pageNum, Integer pageSize);
    Article queryById(String articleId);
    Article insertArticle(Article article);
    int publishArticle(String articleId, String userId);
    int publishArticlesByBatch(String[] articleIds, String userId);
    int updateArticle(ArticleUpdateDto articleUpdateDto);
    int removeArticle(String articleId, String userId);
}